#pragma once
#include <iostream>
#include <string>

#define Die(code)  \
    do              \
    {                   \
        exit(code);     \
    } while (0);        \
    
#define CONV(v) (struct sockaddr *)(v)


const int gdefaultsockfd = -1;
const int gbacklog = 8;

enum 
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    ACCEPT_ERR
};

